package seismosurfer.util;

/**
 * An extension to Exception which is
 * used to deal with user errors. User errors
 * are thrown as checked exceptions, so
 * that the application deals with them.
 *
 */
public class UserException extends Exception {
   
    private static final long serialVersionUID = 2518952321597548386L;

    private Notification error;

    public UserException(Exception e) {
        super(e);
    }

    public UserException(String s) {
        super(s);
    }

    public UserException(Notification error) {
        this.error = error;
    }

    public Notification getNotification() {
        return error;
    }

}
